﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApiTest001.Interface
{
    public interface IRespository<T>
    {
        IQueryable<T> Table { get; }
        T GetById(int id);


        void Insert(T entity);

        void InsertBulk(IEnumerable<T> list);

        void Update(T entity);

        void Delete(T entity);

        void Delete(int id);
    }
}
